package com.tanhua.model.mongo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.bson.types.ObjectId;
import org.springframework.data.mongodb.core.mapping.Document;

import java.io.Serializable;

@Data
@NoArgsConstructor
@AllArgsConstructor
@Document(collection = "peachblossom")
public class Peachblossom implements Serializable {
    private ObjectId id; //主键id
    private Long pid; //自动增长
    private Long userId; //发送语音的用户
    private Long receiveId;//接受语音的用户
    private String soundUrl; //语音文件，URL
    private Long created; //创建时间
}
